package com.woniu.woniu.life.gateway.config;


import com.woniu.common.api.jwt.JwtUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Value("${jwt.keyStoreSecurity}")
    private String keyStoreSecurity;

    @Value("${jwt.keySecurity}")
    private String keySecurity;

    @Value("${jwt.alias}")
    private String alias;

    @Value("${jwt.filePath}")
    private String filePath;

    @Bean
    public JwtUtils getJwtUtils() {
        return new JwtUtils(keyStoreSecurity,keySecurity,alias,filePath);
    }
}
